<?php
	Yii::app()->clientscript
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap-responsive.css' )
		// use it when you need it!
		
		->registerCoreScript( 'jquery' )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-transition.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-alert.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-modal.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-dropdown.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-scrollspy.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tab.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tooltip.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-popover.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-button.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-collapse.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-carousel.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-typeahead.js', CClientScript::POS_END )
		
?>
<?php date_default_timezone_set("America/Caracas");?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marketing Support</title>
<meta name="description" content="">
<meta name="kelly.ruz@samsung.com" content="">

<style type="text/css">
  body {
	padding-top: 85px;
	padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 30px;
  }
  .sidebar-nav {
	padding: 8px 0;
  }
  .navbar{
      background-color: #0000FF;
  }

	@media (max-width: 980px) {
		body{
			padding-top: 0px;
                        
		}
	}
        .fondoso{
            background-image: url(/appmarketing/images/samsung_logo.png);
            background-repeat: no-repeat;
            background-position: center;
        }      
</style>

<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>

<body>
	<div class="navbar navbar-fixed-top navbar-inverse">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
                            <a class="brand" href="/appmarketing" ><?php echo Yii::app()->name ?> </a>
				<div class="nav-collapse" >
					<?php $this->widget('zii.widgets.CMenu',array(
						'htmlOptions' => array( 'class' => 'nav' ),
						'activeCssClass' => 'active',
						'items'=>array(
							//array('label'=>'Home', 'url'=>array('/parteweb')),
                                                        array('label'=>'Home', 'url'=>array('/appmarketing/index')),
                                                        array('label'=>'Managment EO', 'url'=>array('/eo/create')),
                                                        array('label'=>'Customer', 'url'=>array('customer/create')),
                                                        array('label'=>'Vendor', 'url'=>array('vendor/create')),
                                                        array('label'=>'Factura', 'url'=>array('factura/create')),
                                                        array('label'=>'Nota de Debito', 'url'=>array('ndebito/create')),
							//array('label'=>'Contact', 'url'=>array('/site/contact')),
							array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
							array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
						),
					)); ?>
                                            '<form class="navbar-search pull-left" action=""><input type="text" class="search-query span2" placeholder="Search"></form>',

					<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
            <div class="well sidebar-nav">
                <?php echo CHtml::image(Yii::app()->baseUrl."/images/samsung_logo.png"); ?>
 
            </div>
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
                                                <li><a href="/appmarketing/"><i class="icon-home"></i> Home </a></li>
                                                <li><a href="<?php echo Yii::app()->createUrl('/appmarketing');?>"><i class="icon-map-marker"></i> Calendar </a></li>
                                                <li><a href="/appmarketing/eo/admin"><i class="icon-plus"></i> Schedule </a></li>
                                                <hr/>
                                                <li><a href="<?php echo Yii::app()->createUrl('/appmarketing');?>"><i
                                                                class="icon-chevron-right"></i> Funcionalidad I </a></li>
                                                <li><a href="<?php echo Yii::app()->createUrl('/appmarketing');?>"><i
                                                                class="icon-chevron-right"></i> Funcionalidad II</a></li>
                                                <li><a href="<?php echo Yii::app()->createUrl('/appmarketing');?>"><i
                                                                class="icon-chevron-right"></i> Funcionalidad III</a></li>
                                                <li><a href="<?php echo Yii::app()->createUrl('/appmarketing');?>"><i
                                                                class="icon-chevron-right"></i> Funcionalidad IV </a></li>
                                                
                                        </ul>
          </div><!--/.well -->
        </div><!--/span-->
       
        <div class="span9">
            <?php echo $content ?>
          
            <div class="row-fluid">
            
          </div><!--/row-->
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
         <div class="subnav navbar navbar-fixed-bottom navbar-inverse" >
                                <div class="navbar-inner">
                                        <div class="container" align="center" >
                                            <p align="center" ><font color="silver">
                                                        Copyright &copy;
                                                        <?php echo date('Y'); ?>
                                                        Samsung Electronics de Venezuela C.A<br />
                                                        Departament MIS
                                                        </font></p>
                                        </div>
                                         
                                </div>
        </div>
      </footer>

    </div><!--/.fluid-container-->
</body>
</html>
